<?php

/*

Template Name: Index

*/

?>
<?php get_header(); ?>
<div id="content_index">
	<div style="position: absolute; top: 43px; left: 693px;">
		<img src="<?php bloginfo('template_url'); ?>/images/bg_fresh.jpg"/>
	</div>
	<div id="left_col">
		<div id="feature_articles">
			<div style="float: left; width: 230px; padding-top: 15px;"><image src="<?php bloginfo('template_url'); ?>/images/bg_feature_articles.png"/></div>
			<?php 
			$featured_post = get_option('featuredposts_number');
			if($featured_post==null)
				$featured_post = 8;
			query_posts(array( 'category_name' => 'featured-articles', 'posts_per_page' => $featured_post, 'orderby' => 'post_date', 'order' => 'DESC' ));
			//query_posts('category_name=article&showposts=10'); 
			while (have_posts()) : the_post(); 
			$image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'single-post-thumbnail' );?>
			<div class="article">
				<a href="<?php the_permalink();?>" class="image"><?php echo "<img src='$image[0]' width=199 height=149/>"?></a>
				<a href="<?php the_permalink();?>" class="dooms-over"><?php the_title()?></a>
			</div>
			<?php endwhile;?>
		</div>
	</div>
	<div id="right_col">
		<?php fresh_display()?>
		<div id="twitter_feed"></div>
	</div>
</div>	

<div style="clear:both;"></div>

<?php get_footer(); ?>